﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections;
namespace _7._16
{
    class Program
    {
        static void Main(string[] args)
        {
            int sum1 = 0, sum2 = 0;
            const int n = 6;
            int[] arr1 = new int[n] ;
            int[] arr2 = new int[n] ;
            int[] arr3 = new int[n];   
            Console.WriteLine("Вводим первый массив");
            for (int i = 0; i < n; ++i)
            {
                Console.Write("a[{0}]=", i);
                arr1[i] = int.Parse(Console.ReadLine());
            }
            Console.WriteLine("Вводим второй массив");
            for (int i = 0; i < n; ++i)
            {
                Console.Write("a[{0}]=", i);
                arr2[i] = int.Parse(Console.ReadLine());
            }
            for (int i = 0,j=100000; i < n; i++,j/=10)
            {
                arr1[i] = arr1[i] * j;
                sum1 += arr1[i];
                arr2[i] = arr2[i] * j;
                sum2 += arr2[i];

            }

                Console.Write(" Разность массивов = "+ (sum1 -sum2));
                  Console.ReadLine();
        }
    }
}
